"""Placeholder for performance reporting."""

from __future__ import annotations

import argparse


def register(subparsers: argparse._SubParsersAction) -> None:
    parser = subparsers.add_parser("report", help="Summarize runtime profiles")
    parser.add_argument("profile", nargs="?", help="Path to a runtime profile (GPTL text, JSON, etc.)")
    parser.set_defaults(handler=handle)


def handle(args: argparse.Namespace) -> int:
    if args.profile:
        print(f"[report] TODO: parse runtime profile at {args.profile}")
    else:
        print("[report] No profile provided; nothing to do")
    return 0
